Pen Tables for Vector Devices
QuickDraw GX defines a tag object for a paper-type object's view device in the pen table tag enumeration:
enum { gxPenTableTag = 'pent' };QuickDraw GX defines paper-type object units in the paper-type units enumeration:
enum { gxDeviceUnits = 0, gxMmUnits = 1, gxInchesUnits = 2 };Constant descriptions
QuickDraw GX defines pen information in the pen not loaded enumeration:
gxDeviceUnits
- If set, QuickDraw GX uses specific printer units.
gxMmUnits
- If set, QuickDraw GX uses millimeters.
gxInchesUnits
- If set, QuickDraw GX uses inches.
enum { gxPenNotLoaded = -1};QuickDraw GX stores pen table information in the pen table information structure:
struct gxPenTableEntry { Str31 penName; gxColor penColor; fixed penThickness; short penUnits; short penPosition; };QuickDraw GX stores pen information in the pen table information structure:
Field Description
penName
- A string containing the name of the pen.
penColor
- The color that is part of the color set.
penThickness
- The size of the pen.
penUnits
- The units in which the pen thickness is defined.
penPosition
- The pen position in the carousel.
struct gxPenTable { short numPens; gxPenTableEntry pens[1]; };
Field Description
numPens
- The number of pen entries.
pens[1]
- An array of pen entries.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help